package com.itheima.mapper;

import com.itheima.pojo.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;


public interface AccountMapper {

    @Select("select * from tbl_account where id = #{id}")
    Account getById(Integer id);

    @Insert("insert into tbl_account values (#{id},#{name},#{money})")
    void addAccount(Account account);
}
